home *** CD-ROM | disk | FTP | other *** search
/ Logiciels PC Special 3 / Logiciel PC - Hors-Serie 3.iso / Logs / micros / ql / outils / qltoolsq / source / docs / examples < prev    next >
Text File  |  1995-09-21  |  907b  |  52 lines

  1. Qltools: examples of use
  2.  
  3. NOTE: In my Linux box (freddy) the 3"1/2 720K floppy drive is /dev/fd0H720
  4.  
  5. - Listing a ql floppy directory
  6.  
  7. qltools /dev/fd0H720 -d
  8.  
  9. - Read the 5th file in the directory to console
  10.  
  11. qltools /dev/fd0H720 -n5
  12.  
  13. - Read the file named "abcd_c" to console
  14.  
  15. qltools /dev/fd0H720 abcd_c
  16.  
  17. - Read a file with pause (under unix only)
  18.  
  19. qltools /dev/fd0H720 my_file_txt | more
  20.  
  21. - Copy a file named "test_doc" to a unix file
  22.  
  23. qltools /dev/fd0H720 test_doc > test_doc
  24.  
  25. - Read a disk map
  26.  
  27. qltools /dev/fd0H720 -m
  28.  
  29. - List disk info
  30.  
  31. qltools /dev/fd0H720 -i
  32.  
  33. - Read some files under UNIX (a trick with the UNIX shell)
  34.  
  35. for i in file1 file2 file3 file4 file5
  36. do
  37.     qltools /dev/fd0H720 $i > $i
  38. done
  39.  
  40. - Making a disk image under UNIX and use it as a QL floppy image
  41.  
  42. dd if=/dev/fd0H720 of=image
  43.  
  44. qltools image -d
  45.  
  46. - Using a UNIX shell variable for the floppy name
  47.  
  48. flp1=/dev/fd0H720
  49.  
  50. qltools $flp1 -d
  51.  
  52.